
public class RMB {

    private int value;

    public RMB(int value) {

        this.value = value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RMB rmb = (RMB) o;

        if (value != rmb.value) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return value;
    }
}
